package com.yuanian.wf.listener.task;

import com.yuanian.wf.event.task.CompleteTaskAfterEvent;
import com.yuanian.wf.listener.Listener;
import org.springframework.stereotype.Service;

@Service
public class CompleteTaskAfterListener extends Listener<CompleteTaskAfterEvent> {
    @Override
    public void onApplicationEvent(CompleteTaskAfterEvent event) {
        activeApplicationEvent(event.getContext().getCompleteTaskDto().getProcessKey(), event.getContext().getCompleteTaskDto().getTask().getTaskDefinitionKey(), event);
    }
}
